/*******************************************************************************
 * WayStudio GUI Library
 * Developer:Xu Waycell
*******************************************************************************/
#include <verticallayout.hpp>
#include <verticallayoutimpl.hpp>

BEGIN_SOURCECODE

BEGIN_WS_NAMESPACE

VerticalLayout::VerticalLayoutImplementation::VerticalLayoutImplementation(): H_Specific(0) {}

VerticalLayout::VerticalLayoutImplementation::~VerticalLayoutImplementation() {}

void VerticalLayout::VerticalLayoutImplementation::Initial(Layout* LAYOUT) {
	H_Specific=0;
}

void VerticalLayout::VerticalLayoutImplementation::Cleanup() {
	H_Specific=0;
}

void VerticalLayout::VerticalLayoutImplementation::Append(Widget* P) {}

void VerticalLayout::VerticalLayoutImplementation::Remove(Widget* P) {}

VerticalLayout::VerticalLayout(Widget* PARENT):Layout(PARENT), Implementation(0) {
	Implementation = new VerticalLayoutImplementation;
	if(Implementation)
		Implementation->Initial(this);
}

VerticalLayout::~VerticalLayout() {
	if(Implementation)
	{
		Implementation->Cleanup();
		delete Implementation;
	}
}

/*
void VerticalLayout::ProcessResizeEvent(ResizeEvent* E) {
	if(E)
	{
		if(!Implementation->LST_Widget.Empty())
		{
			uinteger C = Implementation->LST_Widget.Total();
			uinteger W = Width()/C;
			uinteger H = Height()/C;
			uinteger CH = 0;
			for(List<Widget*>::Iterator ITER=Implementation->LST_Widget.Begin(); ITER != Implementation->LST_Widget.End(); ++ITER) {
				(*ITER)->Move(0, CH);
				(*ITER)->Resize(W, H);
				CH += H;
			}
		}
	}
}
*/

END_WS_NAMESPACE

END_SOURCECODE
